package top.dark.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import top.dark.common.utils.R;
import top.dark.vo.SocialGithubUserVo;
import top.dark.vo.UserLoginVo;
import top.dark.vo.UserRegisterVo;

/**
 * Author: lijiao
 * description:
 * Create Time: 2021/3/20 21:21
 */
@FeignClient("mall-member")
public interface MemberFeignService {

    @RequestMapping("/member/member/register")
    R register(@RequestBody UserRegisterVo vo);

    @RequestMapping("/member/member/login")
    R login(@RequestBody UserLoginVo vo);

    @RequestMapping("/member/member/oauth/github/login")
    R oauthGithubLogin(@RequestBody SocialGithubUserVo vo);
}
